Skip to main content

Add Member To Channel

AutomatR.Slack.Activities.AddMembertoChannel

The "Add Member To Channel" activity in AutomatR is part of the Slack Channel activities package, facilitating the addition of users to a specified Slack channel. This activity streamlines collaboration by automating the process of inviting users to join specific channels.

Properties

NameDescription
Input
Channel NameEnter the channel name to which you want to add the specified users. Required argument.
User NameEnter the user name of the user to be added to the channel. Required argument.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Add Member To Channel" activity. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultReturns true or false based on the success of the member addition operation. Boolean variable to store the operation result.

How to use:

  1. Drag and drop the "Add Member To Channel" activity onto the workflow.
  2. Configure the properties by specifying the channel name and user name.
  3. Optionally, configure the delay.
  4. Execute the workflow to add the specified user to the Slack channel.

Example: Consider an example where the "Add Member To Channel" activity is used to add a user named "JohnDoe" to a Slack channel named "General":

Add Member To Channel:
Channel Name: "General"
User Name: "JohnDoe"
Delay: 2
Result: isMemberAdded

In this example, the activity adds the user "JohnDoe" to the "General" channel in Slack. The result of the operation (success or failure) is stored in the Boolean variable "isMemberAdded" for further handling in the workflow.